package cn.iocoder.yudao.module.erp.enums.product;

import cn.iocoder.yudao.framework.common.core.ArrayValuable;
import lombok.Getter;
import lombok.RequiredArgsConstructor;

import java.util.Arrays;

/**
 * ERP 金属类型枚举
 */
@RequiredArgsConstructor
@Getter
public enum ErpMetalTypeEnum implements ArrayValuable<Integer> {

    GOLD(1, "黄金"),
    SILVER(2, "白银"),
    PLATINUM(3, "铂金"),
    PALLADIUM(4, "钯金"),
    ;

    public static final Integer[] ARRAYS = Arrays.stream(values()).map(ErpMetalTypeEnum::getType).toArray(Integer[]::new);

    /**
     * 类型
     */
    private final Integer type;
    /**
     * 名称
     */
    private final String name;

    @Override
    public Integer[] array() {
        return ARRAYS;
    }
} 